package br.org.etec.dotcao.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.xml.bind.annotation.XmlRootElement;

@NamedQueries(@NamedQuery(name="stateByName", query="select s from State s where s.name like :name"))
@Table(name="tstate")
@Entity
@XmlRootElement
public class State extends AbstractEntity {

	private static final long serialVersionUID = 1L;
	
	@Column
	private String name;

	@Column
	private String acronym;
	
	public State() {
		super();
	}

	public State(String name, String acronym) {
		super();
		this.name = name;
		this.acronym = acronym;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getAcronym() {
		return acronym;
	}

	public void setAcronym(String acronym) {
		this.acronym = acronym;
	}
}

